package com.dubbo.server;


import com.dubbo.server.service.MessagesPagesService;
import com.tanhua.common.pojo.PageInfo;
import com.tanhua.common.pojo.Publish;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import java.util.List;

@RunWith(SpringRunner.class)
@SpringBootTest
public class TsetUser {


    @Autowired
    private MessagesPagesService messagesPagesService;

    @Test
    public void adminuser() {

//        List<Publish> publishes = messagesPagesService.queryMessages(1, 10);
//        for (Publish publish : publishes) {
//            System.out.println("publish = " + publish);
//        }
    }
}
